﻿<UserControl x:Class="AbstraXDocumentationEditor.DocEditorControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:pin="clr-namespace:PushPinControl;assembly=PushPinControl"
    xmlns:ste="clr-namespace:SilverlightTextEditor;assembly=SilverlightTextEditor"
    mc:Ignorable="d"
    d:DesignHeight="450" d:DesignWidth="650">
    
    <UserControl.Resources>
        <Style x:Key="MenuLabel" TargetType="TextBlock">
            <Setter Property="FontSize" Value="18" />
            <Setter Property="Foreground" Value="#FF1D50A3" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="VerticalAlignment" Value="Top" />
            <Setter Property="Margin" Value="0,0,0,1" />
        </Style>

        <LinearGradientBrush x:Key="MenuDividerBrush" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFC0D8F0" Offset="1"/>
            <GradientStop Color="#FFDBE6F3" Offset="0"/>
            <GradientStop Color="#FFC1D9F1" Offset="0.685"/>
            <GradientStop Color="#FFD7E7F5" Offset="0.678"/>
            <GradientStop Color="#FFDAE6F3" Offset="0.133"/>
            <GradientStop Color="#FFC7D8ED" Offset="0.174"/>
            <GradientStop Color="#FFC8D9ED" Offset="0.478"/>
        </LinearGradientBrush>
        
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="White" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ShowGridLines="False">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="9*" />
            <ColumnDefinition Width="1*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="60" />
            <RowDefinition/>
            <RowDefinition Height="60" />
        </Grid.RowDefinitions>
            
        <Rectangle Fill="{StaticResource MenuDividerBrush}" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" RadiusX="2" RadiusY="2" Stroke="#FFA5BED4"/>
        <StackPanel Grid.Column="0" Grid.Row="0" Margin="5,0,0,0">
            <TextBlock Name="lblDocSummary" Style="{StaticResource MenuLabel}">Documentation Summary:</TextBlock>
            <TextBox Name="tbDocSummary" Height="25" Width="500" HorizontalAlignment="Left"/>
        </StackPanel>

        <pin:PushPinToggle Name="pinPushPin" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" />

        <ste:TextEditorControl Name="steDocumentation" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2" />

        <Rectangle Fill="{StaticResource MenuDividerBrush}" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" RadiusX="2" RadiusY="2" Stroke="#FFA5BED4"/>
        <StackPanel Grid.Column="0" Grid.Row="2" Margin="5,0,0,0">
            <TextBlock Name="lblDesignComments" Style="{StaticResource MenuLabel}">Design Comments:</TextBlock>
            <TextBox Name="tbDesignComments" Height="25" Width="500" HorizontalAlignment="Left" VerticalAlignment="Top"/>
        </StackPanel>
        
    </Grid>
</UserControl>
